﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YWTSSys.DAL;
using YWTSSys.Model;
using YWTSSys.Library;
using System.Data;

namespace YWTSSys.BLL
{
    public  class SLogController
    {

        public static void Add(SLogInfo obj)
        {
            try
            {
                SLogDAL.Add(obj);
            }
            catch
            { 
                
            }
        }


        
        public static SLogInfo GetList(int id)
        {
            return CBO.FillObject<SLogInfo>(SLogDAL.GetList(id));
        }

        public static DataTable GetPagination(string SqlWhere, int PageIndex, int PageSize, string Sort, ref int TotalCount)
        {
            return SLogDAL.GetPagination(SqlWhere, PageIndex, PageSize, Sort, ref  TotalCount);
        }
    }
}
